Rewriting handle_key() part 1