I try to execute different actions by pressing enter. But I do not know how to do this sequentially, that is to say pulse enter and an action is executed, and when I press again another one is executed later. Without affecting the previous one. I access the key like that, but until now I've arrived.
$('body').keyup(function(e) {
if(e.which == 13){
//ejecuto algo
}
});