Move .keydown

Moved .keydown inside document ready.