Better keyboard height detection