Changed press key test to use LineFeed (\10) instead of CarriageReturn (\13). This should solve an issue with Firefox although I wasn't able to test IE nor Chrome.