JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" name="wpuf_post_tags" id="new-post-tags" class="new-post-tags">

CSS

input {text-align:right;padding:5px 10px;font-family:tahoma;direction:rtl}

JavaScript

$('#new-post-tags').keypress(function(event){
	var keycode = (event.keyCode ? event.keyCode : event.which);
	if(keycode == '13'){
    val = $(this).val();
    $(this).val(val + ' , ');
	}
});