Implemented is_pressed/released