criaçao dos metodos KeyPressed/KeyReleased