Create a script called Terminal (yes, without a extension) inside the folder ~/.local/share/nautilus/scripts with the following content:
Create File: /home/m/.local/share/nautilus/scripts/Termial
#!/bin/sh
gnome-terminal
Create File: /home/m/.local/share/nautilus/scripts/code
#!/bin/sh
code
Make it executable, then close any Nautilus instance:
$ chmod +x Terminal
$ chmod +x code
$ nautilus -q
Create (or edit) the ~/.config/nautilus/scripts-accels file adding these lines:
<Control>less Terminal
F6 code
; Commented lines must have a space after the semicolon
; Examples of other key combinations:
; F12 Terminal
; F12 Terminal
; F12 Terminal
needs to be
to open the current folder.