Kbde
From Bashlinux
How to emulate a keyboard strokes from the CLi
Keyboard emulation is done by installing kbde-driver, it will read all the keystokes send to /dev/kbde. There is also a package that convert ascii char to keystroke.
To have both on system just install the proper RPMs:
yum -y install kbde-driver kbde