updated keyboard height method