Implements a rough version of keyboard_check_direct though the mappings
are wrong.