Added method get_pressed

See legacy.py