Move blur/focus/keydown handlers to play.js