How to make protractor press the enter key?
Keyup/Keydown is limited to modifier keys in WebDriver (shift, ctrl, etc). I think you want
browser.actions().sendKeys(protractor.Key.ENTER).perform();
The actions() is not required.
You can do something like:
var input = $('#someInput');
input.sendKeys(protractor.Key.ENTER);
Update: some people have complained that you are not sending the enter to browser. If you want to do this just change your selector:
$('body').sendKeys(protractor.Key.ENTER);