functions isEnterPushed() and (isFocusLost) added