Assign gameaction to keys