Well, here are the $chr's for the main control codes:
$chr(2) = Ctrl-B
$chr(3) = Ctrl-K
$chr(15) = Ctrl-O
$chr(31) = Ctrl-U
You can check it for those by default if you want. If it's some other code, then you'd need to find the $chr for it as mentioned above.