Getting keystokes in SDL window

hi to all, i’ve centos7.5 in VM. I want to get and being displayed keystrokes on the SDL Window. as that on gedit. how to do that, please help.