[Ticket/12699] Remove magic numbers in the message textarea keydown callback

This replaces the magic numbers with parameters of the keymap object inside the phpBB core code block.