Unfortunately, the stock keyboard of Samsung phones doesn't have a feature where you can change its color. If you're keen on changing the theme or color of your keyboard, you can install and use third-party apps such as Gboard and SwiftKey.