Fix bug in keydown (moving up to first row was broken)
Reduce number of calls to getData()