Better way to Handle Keyboard opening

Now the keyboard will just open if I pressed menu button