The idiomatic expression
"to keep someone playing for hours" means to engage or occupy a person in an activity, usually one involving amusement and entertainment, so much that they continue doing it without getting bored or losing interest.
Full definition