Fix append to correct location, enterkey to input message

@georgetmayorga 
space before `%>`