Added sendEnter function