Changed the type of "pressedKey" from int to char in order to avoid
OS-related errors