Handle keyboard shortcuts using ScriptingAPI instead of model_player

[#46375033]