Fixed error in pressEnter(), now compiles on Linux