Rename wait_key to check_key.