It seems it's a bug with either SwiftKey or 3rd party keyboards. At least in the Note 7 people have been reporting the keyboard to be back to normal if they reboot with the modified screen density or if they force-stop the keyboard and summon it back.