key listeners and height handler