What keyboard are you using? Gboard is known to have issues and its generally recommended to use floris or unexpected.