Display the keycode of pressed keys on the keyboard, helpful for debugging keyboard-related issues and key remapping. More information: https://manned.org/showkey.
sudo showkey
sudo showkey {{[-s|--scancodes]}}
sudo showkey {{[-k|--keycodes]}}
sudo showkey {{[-a|--ascii]}}
<Ctrl d>