Run terminal emulator (Minicom or cu) and estabhlish connection with the phone.
For example(Bluetooth):
cu -l /dev/rfcomm0 -s 19200
or (IR):
cu -l /dev/ircomm0 -s 19200
or (cable):
cu -l /dev/ttyACM0 -s 19200
It should answers
Connected
Enter AT or ATZ and get answer "OK"
AT OK
Enter
AT+CKPD="1"
and get answer
OK
or
ERROR
If You got "OK" - did You see "1" on the screen of Your cell phone ? (Sagem users should use AT+CKPD="49" instead)
If You got "ERROR" on "AT+CKPD=..." Your will not be able to send keyboard emulation command to Your phone from anyRemote.