App to debug scancodes?

Hello, I am trying to debug some keyboard scancode values when dealing with Haiku in a virtual machine context. Is there a command line utility or graphical tool that reports key-up and key-down scancodes as I press keyboard keys? This would really help me to understand keyboard drivers better for Haiku.

Maybe @armanx64 add-on can help: Need your help with testing new cool addon
I haven’t tried it…