replace the variable “keyname” with this:
local keyname = tostring(input.KeyCode):match("KeyCode.(.+)")